﻿<cfscript>
/** 
* DataBase Frameworks - Sequence
* 
* @hint "DataBase Frameworks - Sequence - TargetResponse" 
*/ 

component 
	displayname="public.service.db.senate.sequence.TargetResponse" 
	output=false 
	accessors=true 
	{

	property type="string" name="ChooseID" hint="学生选课号";
	property type="string" name="TargetID" hint="观察点编号";
	
	/**
	* @hint "初始化对象"
	*/
	public function init() output=false {
		return this;
	}
	
	/**
	* @hint "自定义主键规则"
	*/
	public string function getID() output=false {
		
		var nextID = getTargetID() & "," & getChooseID();

		/* 
			主键生成规则 
			
			调查对象编号42位 5位观察点编号 , 36位学生选课号

			Unique: tag_id, scc_id
		*/
		return nextID;
	}

}

</cfscript>